function jianpan(e) {
				var key = e.keyCode;
				var top1 = document.getElementById("top1");
				for (var i = 0; i < top1.children.length; i++) {
					var code = top1.children[i].getAttribute("keycode");
					if (key == code) {
						top1.removeChild(top1.children[i])
						break;
					}
				}
			}
			var creatInterval = 0;
			var moveInterval = 0;
			var stop;

			function kaishi() {
				if (creatInterval == "0" && moveInterval == "0") {
					creatInterval = setInterval("creatPg()", 1000);
					moveInterval = setInterval("movePg()", 100);
				}
				//间隔时间创建苹果
				//每个苹果50毫秒向下移动var i=5;
				//				i=5;
				//				var div1 = document.getElementById("div1")
				//				div1.style.display = "block";
				//				var i = 5;
				//				stop = setInterval(function() {
				//					i--;
				//					div1.innerHTML = "游戏将要开始:"+i ;
				//					if (i == 0) {
				//						div1.style.display = "none"
				//						
				//					}
				//				}, 1000)
			}

			function jieshu() {
				clearInterval(creatInterval);
				clearInterval(moveInterval);
				top1.innerHTML = null;
			}

			function zanTing() {
				clearInterval(creatInterval);
				clearInterval(moveInterval);
				creatInterval = 0;
				moveInterval = 0;
			}

			function creatPg() {
				var div = document.createElement("div");
				var num = parseInt(Math.random() * 26) + 65;
				div.innerHTML = "&#" + num + ";";
				div.setAttribute("keycode", num);
				var left = parseInt(Math.random() * 700) + 10;
				div.style.left = left + "px";
				div.style.top = "0px";
				document.getElementById("top1").appendChild(div);
			}

			function movePg() {
				var top1 = document.getElementById("top1");
				for (var i = 0; i < top1.children.length; i++) {
					var t = parseInt(top1.children[i].style.top);
					t += 10;
					top1.children[i].style.top = t + "px";
					if (t >= 370) {
						top1.children[i].className = "psPg";
						top1.children[i].innerHTML = "";
					}
					if (t > 400) {
						top1.removeChild(top1.children[i])
					}
				}
			}